package com.landinfo.service;

import com.landinfo.domain.PageResult;
import com.landinfo.domain.PhotoType;
import com.landinfo.domain.PhotoTypePath;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;


public interface PhotoTypeService {
    /**
     * @param dataTypeDTO
     * @return
     */
    PhotoType save(PhotoType dataTypeDTO);

    /**
     * @return
     */
    List<PhotoType> findAll();

    List<PhotoType> queryByName(String name);

    /**
     * @param id
     * @return
     */
    PhotoType findOne(String id);

    /**
     * @param id
     */
    void delete(String id);

    /**
     * 获取所有图片标签
     *
     * @return
     */
    List<String> getAllTab();

    //    Page<PhotoType> findByPhotoLabelAndCreateDateTime(String photoLable, Date startDateTime, Date endDateTime, Pageable pageable);
//
    String findByTagsAndCreateDateTime(String tags, String camerasStr, Date startDateTime, Date endDateTime, String orderBy, Pageable pageable);

    Iterable<PhotoTypePath> getAllPhotoTypePath();

    List<String> groupByCreateDateTime();

    Boolean updateCreateDateTime();
}
